package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.CheckIn;
import com.ruoyi.system.mapper.CheckInMapper;
import com.ruoyi.system.service.CheckInService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Slf4j
@Service
public class ICheckInServiceImpl implements CheckInService {
    @Autowired
    private CheckInMapper checkInMapper;

    @Override
    public List<CheckIn> listCheckIn(CheckIn checkIn) {
        log.info("查询:"+checkIn);
        return checkInMapper.listCheckIn(checkIn);
    }

    @Override
    public int insertUpCheck(CheckIn checkIn) {
        return checkInMapper.insertUpCheck(checkIn);
    }

    @Override
    public int upDownCheck(CheckIn checkIn) {
        return checkInMapper.upDownCheck(checkIn);
    }

    @Override
    public CheckIn selectMorningByDate(CheckIn checkIn) {
        return checkInMapper.selectMorningByDate(checkIn);
    }

    @Override
    public CheckIn selectAfternoonByDate(CheckIn checkIn) {
        return checkInMapper.selectAfternoonByDate(checkIn);
    }
}
